package com.wealth.system.service;

import java.util.List;

import iaas.service.IBaseService;

import com.wealth.system.entity.User;

/**
 * 
 * @author chan
 */
public interface IUserService extends IBaseService<User> {
	
	/** ------------------------------- 扩展  ------------------------------*/
	
	/**  查询用户 通过登陆名  */
	public User findUserByUsername(String username);
	
	
	
	/**  查询企业管理员  */
	public User findCorpAmin(Long corpid) throws Exception ;
	
	/**
	 * 用户名是否唯一
	 */
	public boolean unique(String username) throws Exception;

	/**
	 * 修改密码
	 */
	public void updatePassword(User user) throws Exception;



	public List<User> getUserByCorpIdAndStatus(Long corpid, int value);
	

}
